package com.foreveross.crawl.common.exception;

import com.foreveross.crawl.common.exception.enums.TaskStatusEnum;

public class CustomRuntimeException extends RuntimeException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6404414611526136192L;
	private int errorCode;

	public CustomRuntimeException(){
		super();
	}
	
	public CustomRuntimeException(int code){
		super(String.format("error code[%s]", code));
	}
	
	public CustomRuntimeException(String message){
		super(message);
	}
	
	public CustomRuntimeException(String message,Throwable rootCause){
		super(message,rootCause);
	}
	
	public CustomRuntimeException(String message, Exception ex){
		super(message,ex);
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
}
